<?php

class Commit extends CI_Model {
	
	function __construct()
	{
		parent::__construct();
	}

	function insertRecord($serviceName,$mailList,$pv,$expectedTime,$submitter,$isFinished,$dataAmount,$serviceLevel,$productName)
	{
		$record = array(
			'serviceOrderID' => null,
			'serviceName'    => $serviceName,
			'pv' 		 => $pv,
			'expectedTime'   => $expectedTime,
			'mailList'       => $mailList,
			'submitter'      => $submitter,
			'isFinished'     => 'no',
			'dataAmount' 	 => $dataAmount,
			'serviceLevel'   => $serviceLevel,
			'productName'   => $productName
		);
		$this ->db -> insert('serviceOrder',$record);
	}
}

?>
